//
//  ui_config.h
//  KFD
//
//  Created by JIRENTIANXIANG on 6/10/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#ifndef KFD_ui_config_h
#define KFD_ui_config_h

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

#define KFDColorRGB(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define KFDColorRGBA(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/255.0]

#define KFD_BG_COLOR KFDColorRGB(0xe2,0xe2,0xe2)
#define KFD_TRANSPARENT_COLOR KFDColorRGBA(0x00,0x00,0x00,0x00)
#define KFD_WHITE KFDColorRGB(0xff,0xff,0xff)
#define KFD_RED KFDColorRGB(0xb0, 0x2b, 0x31)
#define KFD_GREEN KFDColorRGB(0x55, 0xb8, 0x4e)
#define KFD_TEXT_DARK_GRAY KFDColorRGB(0x4d, 0x4d, 0x4d)
#define KFD_TEXT_GRAY KFDColorRGB(0x6d,0x6d,0x6d)
#define KFD_TEXT_LIGHT_GRAY KFDColorRGB(0xb3, 0xb3, 0xb3)
#define KFD_LIGHT_GRAY KFDColorRGB(0x99, 0x99, 0x99)
#define KFD_NICKNAME_COLOR KFDColorRGB(0x01, 0x72, 0xbd)
#define KFD_UP_COLOR KFDColorRGB(0xfc, 0x42, 0x3e)
#define KFD_DOWN_COLOR KFDColorRGB(0x53, 0xb8, 0x4e)
#define KFD_TABLEVIEW_SEPARATOR_COLOR [UITableView new].separatorColor
#define KFD_BLUE KFDColorRGB(0x01, 0x72, 0xbd)
#define KFD_K_MID_COLOR KFDColorRGB(0x9f,0x60,0x7f)
#define KFD_K_UP_COLOR KFDColorRGB(0x6d,0xc4,0xb3)
#define KFD_K_DOWN_COLOR KFDColorRGB(0xd1,0xb8,0x82)
#define KFD_DATE_COLOR KFDColorRGB(0x8f,0x90,0x8d)
#define KFD_DIAGRAM_BG KFDColorRGB(0xee,0xee,0xee)

#endif
